/**
 * $Revision: 1.0 $
 * $Author: Eric Yang $
 * $Date: Sep 2, 2009 2:16:26 PM $
 *
 * Author: Eric Yang
 * Date  : Sep 2, 2009 2:16:26 PM
 *
 */
package com.gooex.web.action.gbuy.usercenter;

import com.gooex.service.company.ICompanyManager;
import com.gooex.service.organization.IAddressManager;
import com.gooex.web.action.BaseProtectedAction;


/**
 * @Author: Eric Yang
 * @version : 1.0
 */
public class MenuAction extends BaseProtectedAction {

	private ICompanyManager companyManager;

	private IAddressManager addressManager;

	public long getCompanyNum() {
		return companyManager.getUserCompanyNum(getCurrentUser());
	}

	public long getAddressNum() {
		return addressManager.getUserAddressNum(getCurrentUser());
	}

	public void setCompanyManager(ICompanyManager companyManager) {
		this.companyManager = companyManager;
	}

	public void setAddressManager(IAddressManager addressManager) {
		this.addressManager = addressManager;
	}

}
